//
//  NetRequest+community.h
//  DogeLegs
//
//  Created by 宋华 on 2017/8/20.
//  Copyright © 2017年 宋华. All rights reserved.
//

#import "NetRequest.h"

@interface NetRequest (community)

/*
 @brief 获取社区帖子
 @param success 成功回调
 @param fail 失败回调
 */
- (NSURLSessionDataTask *)getNotelistDictionary:(NSDictionary *)params
                                                success:(void (^)(NSMutableArray *orderList,NSInteger totalCount,NSInteger totalPages))success
                                                   fail:(void (^)(RequestError *error))fail;


/*
 @brief 添加帖子
 @param success 成功回调
 @param fail 失败回调
 */
- (NSURLSessionDataTask *)postNoteDone:(NSDictionary *)params
                                        success:(void (^)(BOOL isSuccess))success
                                  fail:(void (^)(RequestError *error))fail;

/*
 @brief 删除帖子
 @param success 成功回调
 @param fail 失败回调
 */
- (NSURLSessionDataTask *)deleteNoteDone:(NSDictionary *)params
                               success:(void (^)(BOOL isSuccess))success
                                  fail:(void (^)(RequestError *error))fail;

/*
 @brief 添加评论
 @param success 成功回调
 @param fail 失败回调
 */
- (NSURLSessionDataTask *)addNoteComment:(NSDictionary *)params
                                 success:(void (^)(BOOL isSuccess))success
                                    fail:(void (^)(RequestError *error))fail;



/*
 @brief 删除评论
 @param success 成功回调
 @param fail 失败回调
 */
- (NSURLSessionDataTask *)deleteNoteComment:(NSDictionary *)params
                                 success:(void (^)(BOOL isSuccess))success
                                    fail:(void (^)(RequestError *error))fail;


@end
